package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 部门对象 department
 * 
 * @author 胖头鱼
 * @date 2025-02-25
 */
public class Department extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门唯一标识 */
    private Long departmentId;

    /** 部门名称（唯一） */
    @Excel(name = "部门名称", readConverterExp = "唯=一")
    private String departmentName;

    /** 部门编码 */
    @Excel(name = "部门编码")
    private String departmentNumber;

    /** 助记码 */
    @Excel(name = "助记码")
    private String mnemonicCode;

    /** 负责人 */
    @Excel(name = "负责人")
    private String principal;

    /** 手机 */
    @Excel(name = "手机")
    private String mobilePhone;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date establishDate;

    /** 撤销日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "撤销日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date revocationDate;

    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setDepartmentNumber(String departmentNumber) 
    {
        this.departmentNumber = departmentNumber;
    }

    public String getDepartmentNumber() 
    {
        return departmentNumber;
    }
    public void setMnemonicCode(String mnemonicCode) 
    {
        this.mnemonicCode = mnemonicCode;
    }

    public String getMnemonicCode() 
    {
        return mnemonicCode;
    }
    public void setPrincipal(String principal) 
    {
        this.principal = principal;
    }

    public String getPrincipal() 
    {
        return principal;
    }
    public void setMobilePhone(String mobilePhone) 
    {
        this.mobilePhone = mobilePhone;
    }

    public String getMobilePhone() 
    {
        return mobilePhone;
    }
    public void setEstablishDate(Date establishDate) 
    {
        this.establishDate = establishDate;
    }

    public Date getEstablishDate() 
    {
        return establishDate;
    }
    public void setRevocationDate(Date revocationDate) 
    {
        this.revocationDate = revocationDate;
    }

    public Date getRevocationDate() 
    {
        return revocationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("departmentId", getDepartmentId())
            .append("departmentName", getDepartmentName())
            .append("departmentNumber", getDepartmentNumber())
            .append("mnemonicCode", getMnemonicCode())
            .append("principal", getPrincipal())
            .append("mobilePhone", getMobilePhone())
            .append("establishDate", getEstablishDate())
            .append("revocationDate", getRevocationDate())
            .append("remark", getRemark())
            .toString();
    }
}
